package sc.web.action.demo;


import org.springframework.stereotype.Controller;
import org.springframework.ui.ModelMap;
import org.springframework.web.bind.annotation.RequestMapping;

import sc.core.dal.daointerface.UserDAO;
import sc.core.dal.demo.CityInfoDAO;


@Controller
public class IbatisAction {

	CityInfoDAO cityInfoDAO;

	UserDAO userDAO;

	@RequestMapping("/demo/ibatis.htm")
	public String doLogin(ModelMap model) {
		//model.addAttribute("cityInfos", cityInfoDAO.selectCityInfo());
		
		//model.addAttribute("users", userDAO.());
		return "/demo/ibatis";
	}

	
	

	public CityInfoDAO getCityInfoDAO() {
		return cityInfoDAO;
	}
	public void setCityInfoDAO(CityInfoDAO cityInfoDAO) {
		this.cityInfoDAO = cityInfoDAO;
	}
	public UserDAO getUserDAO() {
		return userDAO;
	}
	public void setUserDAO(UserDAO userDAO) {
		this.userDAO = userDAO;
	}
	
	
}
